package cn.wolfcode.luowowo2.mgrsite.web.controller;

import cn.wolfcode.luowowo2.article.domain.StrategyTag;
import cn.wolfcode.luowowo2.article.service.IStrategyTagService;
import cn.wolfcode.luowowo2.common.query.StrategyTagQueryObject;
import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Albert on 2019/7/9.
 */
@Controller
@RequestMapping("strategyTag")
public class StrategyTagController {
    @Reference
    private IStrategyTagService strategyTagService;


    @RequestMapping("list")
    public String list(Model model, StrategyTagQueryObject qo){
        PageInfo<StrategyTag> pageInfo = strategyTagService.query(qo);
        model.addAttribute("pageInfo",pageInfo);

        return "strategyTag/list";
    }

}
